<center><? print $message ? $message :'' ?></center>
<form name="addmovie" method="post" action="<?=$action?>">
<table>
<th colspan="2"> <?if(isset($movie_details->movie_name)) { echo "Edit Movie Name";} else echo "Add Movie Name" ?></th>

<tr align="left">
	<td>Movie Name</td>
	<td> <input type="text" name="moviename" id ="moviename" value="<?if(isset($movie_details->movie_name)) { echo $movie_details->movie_name;} ?>"/></td>
	<input type="hidden" name="hidden_id" id="hidden_id" value="<?if(isset($movie_details->id)) { echo $movie_details->id;} ?>"/>
</tr>
<tr align="left">
	<td>Release date</td>
	<td> <input type="text" name="releasedate" id ="releasedate" value="<?if(isset($movie_details->release_date)) { echo $movie_details->release_date;} ?>	"/></td>
</tr>
<tr align="left">
	<td>Wallpapers</td>
	<td>
	<? $wall_id = 0;
if(isset($movie_details->wallpapers_id)) { $wall_id = $movie_details->wallpapers_id;}
	?>
	 <?=form_dropdown('wall_movies',$wall_movies_options,$wall_id); ?></td>
</tr>
<tr align="left">
	<td>Gallery</td>
	<td> 
	<? $gall_id = 0;
if(isset($movie_details->gallery_id)) { $gall_id = $movie_details->gallery_id;}
	?>
	 <?=form_dropdown('gall_movies',$gall_movies_options,$gall_id); ?></td>
</tr>
<tr align="left">
	<td>Interview</td>
	<td> 
	<? $int_id = 0;
if(isset($movie_details->interview_id)) { $int_id = $movie_details->interview_id;}
	?>
	 <?=form_dropdown('interview_movies',$int_options,$int_id); ?></td>
</tr>
<tr align="left">
	<td>Active</td>
	<td> <input type="checkbox" name="active" id ="active" checked="checked" value="0"/></td>
</tr>
<tr align="left">
	<td></td>
	<td> <input type="submit" name="<?=$button_value ?>" id ="<?=$button_value ?>" value="<?=$button_value ?>"/></td>
</tr>
</table>
</form>